@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="tableName" name="表名" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="className" name="类名" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="content" name="功能" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="TableInfo.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="TableInfoTableToolbar" role="group">
                            @if(shiro.hasPermission("/tableinfo/add")){
                            <#button name="添加" icon="fa-plus" clickFun="TableInfo.openAddTableInfo()"/>
                            @}
                            @if(shiro.hasPermission("/tableinfo/update")){
                            <#button name="修改" icon="fa-plus" clickFun="TableInfo.openTableInfoEdit()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tableinfo/delete")){
                            <#button name="删除" icon="fa-minus" clickFun="TableInfo.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tableinfo/dbimport")){
                            <#button name="DB导入" icon="fa-database" clickFun="TableInfo.dbimport()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tableinfo/sqlimport")){
                            <#button name="SQL导入" icon="fa-code" clickFun="TableInfo.sqlimport()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/tableinfo/codegen")){
                            <#button name="生成" icon="fa-play" clickFun="TableInfo.gen()" space="true"/>
                            @}
                        </div>
                        <#table id="TableInfoTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/code/tableinfo/tableinfo.js"></script>
@}
